package com.aididi.serviceImpl;

import com.aididi.entity.Order;
import com.aididi.service.OrderService;
import org.apache.dubbo.config.annotation.Service;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @Auther: zx.xu
 * @Description:
 */
@Service(version = "${dubbo.service.version}",timeout = 50000,interfaceClass = OrderService.class)
public class OrderServiceImpl implements OrderService{
    @Override
    public List<Order> getOrderList() {
        List<Order> orderList = new ArrayList<>();
        orderList.add(Order.builder().orderID("221").OrderNum(2).OrderMoney(BigDecimal.valueOf(42.2)).build());
        orderList.add(Order.builder().orderID("222").OrderNum(3).OrderMoney(BigDecimal.valueOf(21)).build());
        return orderList;
    }
}
